package com.jhxx.service.impl;

import com.jhxx.mapper.IntegralDao;
import com.jhxx.entity.Integral;
import com.jhxx.service.IntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author chengxu
 * Date  2019-12-09
 */
@Service
public class IntegralServiceImpl implements IntegralService {
    @Autowired
    private IntegralDao integralDao;
    
    @Override
    public Integral get(String id){
        return integralDao.get(id);
    }
    
    @Override
    public List<Integral> findList(Integral integral) {
        return integralDao.findList(integral);
    }
    
    @Override
    public List<Integral> findAllList() {
        return integralDao.findAllList();
    }
    
    @Override
    public int insert(Integral integral) {
        return integralDao.insert(integral);
    }
    
    @Override
    public int insertBatch(List<Integral> integrals){
        return integralDao.insertBatch(integrals);
    }
    
    @Override
    public int update(Integral integral) {
        return integralDao.update(integral);
    }
    
    @Override
    public int delete(Integral integral) {
        return integralDao.delete(integral);
    }

}
